package com.anli02.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class messageConverterto {
    @Bean
    public Jackson2JsonMessageConverter methodConverter()
    {
        Jackson2JsonMessageConverter jjmc=new Jackson2JsonMessageConverter();
        jjmc.setCreateMessageIds(true);
        return jjmc;

    }
}
